import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { DashboardComponent } from './components/dashboard/dashboard.component';
import { DashboardService } from './services/dashboard.service';

const routes: Routes = [
	{
		path: '',
		component: DashboardComponent,
		data: {
			title: '仪表盘',
		},
		resolve: {
			data: DashboardService,
		},
	},
];

@NgModule({
	imports: [RouterModule.forChild(routes)],
	exports: [RouterModule],
})
export class DashboardRoutingModule {}
